package com.atguigu.service;

import com.atguigu.base.BaseService;
import com.atguigu.entity.UserFollow;
import com.atguigu.vo.UserFollowVo;
import com.github.pagehelper.PageInfo;

/**
 * @author lhh
 * @ClassName UserFollowService
 */

public interface UserFollowService extends BaseService<UserFollow> {
    /**
     * 判断是否关注房源信息
     * @param userId
     * @param houseId
     * @return
     */
    boolean isFollow(Long userId, Long houseId);

    /**
     * 查询用户关注房源列表
     * @param pageNum
     * @param pageSize
     * @param userId
     * @return
     */
    PageInfo<UserFollowVo> getFollowList(Integer pageNum, Integer pageSize, Long userId);
}
